package com.carkeeper.caruser.feign;

import com.carkeeper.caruser.pojo.User;
import com.carkeeper.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "caruser")
public interface UserFeign {

    /**
     * 根据id查询车主
     * @param userId
     * @return
     */
    @GetMapping("/user/findUserById")
    public Result<User> findUserById(@RequestParam("userId") String userId);
}
